home *** CD-ROM | disk | FTP | other *** search
/ Champak 86 / (Vol 86) My Disc.iso / Games / pet_1112.swf / scripts / DefineSprite_528 / frame_5 / DoAction.as
Text File  |  2009-04-14  |  573b  |  28 lines

  1. stop();
  2. for(var prop in ezWardrobeRollOvers)
  3. {
  4.    trace(prop);
  5.    clip = ezWardrobeRollOvers[prop];
  6.    clip.onPress = function()
  7.    {
  8.       if(this.baseClip_mc._visible)
  9.       {
  10.          _parent.wears[this.part][this.ID].onPress();
  11.       }
  12.       this.gotoAndStop(2);
  13.       this.baseClip_mc._visible = false;
  14.    };
  15.    clip.onMouseOver = function()
  16.    {
  17.       _root.sounds.whoosh.start();
  18.       this.gotoAndStop(2);
  19.    };
  20.    clip.onRollOut = function()
  21.    {
  22.       if(this.baseClip_mc._visible)
  23.       {
  24.          this.gotoAndStop(1);
  25.       }
  26.    };
  27. }
  28.